// Decompiled on 周六 2月 22 19:31:49 CST 2025 with Zomboid Decompiler v0.1.3 using Vineflower.
package zombie.radio.effects;

import java.util.ArrayList;
import java.util.HashMap;
import java.util.Map;
import zombie.characters.IsoPlayer;

public final class LineEffectMemory {
    private final Map<Integer, ArrayList<String>> memory = new HashMap();

    public void addLine(IsoPlayer plr, String lineguid) {
        int _int = plr.getDescriptor().getID();
        ArrayList arrayList;
        if (!this.memory.containsKey(_int)) {
            arrayList = new ArrayList();
            this.memory.put(_int, arrayList);
        } else {
            arrayList = (ArrayList)this.memory.get(_int);
        }

        if (!arrayList.contains(lineguid)) {
            arrayList.add(lineguid);
        }
    }

    public boolean contains(IsoPlayer plr, String lineguid) {
        int _int = plr.getDescriptor().getID();
        return !this.memory.containsKey(_int) ? false : ((ArrayList)this.memory.get(_int)).contains(lineguid);
    }
}
